<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
  <style>
.tableK { font-size: 14px; border-spacing: 0px; border-bottom: 1px solid #999; width: 100%; }
.tableK tr th{ background-color: #CFDBEC; font-weight: bold; width: 160px; text-align: right; border-right: none; }
.tableK tr { }
.tableK td { border: 1px solid #999; border-bottom: none; padding: 4px 6px; }
.tableK td input[type='text'] { padding: 2px 4px; width: 300px; border: 1px solid #999; }
.tableK td textarea { border: 1px solid #999; }
.buttonpanle { width: 70%; text-align: center; margin-top: 4px; }
.mf-body-title { height: 40px; line-height: 40px; font-weight: bold; padding-left: 20px; }
</style>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>formvalidator.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>formvalidatorregex.js" charset="UTF-8"></script>
<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({formid:"frmadd",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
	$("#name").formValidator({onshow:"请输入名称",onfocus:"2到50字符",oncorrect:"输入正确"}).inputValidator({min:1,max:50,onerror:"请输入2到50字符"});
	$("#title").formValidator({onshow:"请输入名称",onfocus:"2到50字符",oncorrect:"输入正确"}).inputValidator({min:1,max:50,onerror:"请输入2到50字符"});
})
//-->
</script>
  <div>
	<form action="/index.php?m=hchbrowse&c=loadshow&a=mylist"  method="post" name="frmadd" id="frmadd">
		<table class="tableK" >
            <tbody>
                <tr>
                    <th>名称</th>
                    <td>
                        <input type="hidden" name="action" value="add" />
                        <input type="text" name="item[name]" id="name"  class="input-text" />*
                    </td>
                </tr>
                <tr>
                    <th>标题</th>
                    <td>
                        <input type="text" name="item[title]" id="title"  class="input-text" />*
                    </td>
                </tr>
                <tr>
                    <th>内容摘要</th>
                    <td>
                        <textarea rows="10" cols="50" name="item[short_content]" id="short_content"></textarea>
                    </td>
                </tr>
                <!-- <tr>
                    <th>内容</th>
                    <td>
                        <textarea rows="10" cols="50" name="item[content]" id="content"></textarea>
                        <?php echo form::editor('item[content]','full','','','',1,1);?>
                    </td>
                </tr> -->
                <tr>
                    <th>照片</th>
                    <td>
                        <?php echo form::images('item[img]', 'img', '', 'link')?>
                    </td>
                </tr>
                <tr>
                    <th>视频路径</th>
                    <td>
                        <input type="text" name="item[video]" id="video"  class="input-text" />
                    </td>
                </tr>
                <tr>
                	<th>路演类型</th>
                    <td>
                        <input type="radio" name="item[assort_type_id]" id="assort_type_id_img"  class="input-text" value="33"/>图片文字
                        <input type="radio" name="item[assort_type_id]" id="assort_type_id_video"  class="input-text" value="34"/>视频
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <input type="submit" name="submit" id="submit" value="提交" />
                    </td>
                </tr>
	          </tbody>
	      </table>
      </form>
</div>
</body>
</html>